package com.cls.business.mapper;

import com.cls.business.entity.BlackList;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cls.common.annotation.EncryptParam;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 黑名单 Mapper
 *
 * @author slx
 * @date 2020-11-23 14:56:14
 */
@Repository
public interface BlackListMapper extends BaseMapper<BlackList> {

    List<BlackList> findBlackListsPage(@Param("blackList")BlackList blackList);

    BlackList getForId(@Param("blackListId")Long blackListId);

    @Select("select * from biz_member_info where is_delete = false and identity = #{identity} limit 1")
    BlackList findByIdentity(@EncryptParam("identity")  @Param("identity") String identity);
}
